﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KC.Business.Humor
{
	public static class Taglines
	{
		public static string GetMessage()
		{
			return LoadFromFile();
		}
		private static string LoadFromFile()
		{
			try {
				string[] lines = System.IO.File.ReadAllLines(System.Configuration.ConfigurationManager.AppSettings["HumorTaglinesFile"]);
				return lines[new Random().Next(0, lines.Length - 1)]; }
			catch { return ""; }
		}
	}
}
